package org.standard.proposal.model;

/**
 * ProposalAgreeUserId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class ProposalAgreeUserId implements java.io.Serializable {

	// Fields

	private String proposalId;
	private String proposalAgreeUserId;

	// Constructors

	/** default constructor */
	public ProposalAgreeUserId() {
	}

	/** full constructor */
	public ProposalAgreeUserId(String proposalId, String proposalAgreeUserId) {
		this.proposalId = proposalId;
		this.proposalAgreeUserId = proposalAgreeUserId;
	}

	// Property accessors

	public String getProposalId() {
		return this.proposalId;
	}

	public void setProposalId(String proposalId) {
		this.proposalId = proposalId;
	}

	public String getProposalAgreeUserId() {
		return this.proposalAgreeUserId;
	}

	public void setProposalAgreeUserId(String proposalAgreeUserId) {
		this.proposalAgreeUserId = proposalAgreeUserId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ProposalAgreeUserId))
			return false;
		ProposalAgreeUserId castOther = (ProposalAgreeUserId) other;

		return ((this.getProposalId() == castOther.getProposalId()) || (this
				.getProposalId() != null
				&& castOther.getProposalId() != null && this.getProposalId()
				.equals(castOther.getProposalId())))
				&& ((this.getProposalAgreeUserId() == castOther
						.getProposalAgreeUserId()) || (this
						.getProposalAgreeUserId() != null
						&& castOther.getProposalAgreeUserId() != null && this
						.getProposalAgreeUserId().equals(
								castOther.getProposalAgreeUserId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getProposalId() == null ? 0 : this.getProposalId()
						.hashCode());
		result = 37
				* result
				+ (getProposalAgreeUserId() == null ? 0 : this
						.getProposalAgreeUserId().hashCode());
		return result;
	}

}